package com.ruoyi.applet.mapper;

import com.ruoyi.applet.domain.UserLogin;
import com.ruoyi.applet.domain.UsrBrowseTime;
import com.ruoyi.applet.domain.vo.UsrLikeBrowse;
import com.ruoyi.system.api.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户信息Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-12
 */
@Mapper
public interface UserMapper 
{
    User selectUsrPhoneANDPassword(@Param("usrPhone") String usrPhone, @Param("usrPassword") String usrPassword);

    Boolean insertAllBoolean(UserLogin user);

    Integer selectAllByUerNameInteger(@Param("usrName") String usrName);

    Integer selectByUsrPhoneInteger(@Param("usrPhone") String usrPhone);

    Integer selectAllByUsrIdLikeInteger(@Param("usrId") Long usrId);

    Integer selectAllByUsrIdBrowseInteger(@Param("usrId") Long usrId);

    List<UsrLikeBrowse> selectAllByUsrIdLikeList(@Param("usrId") Long usrId);

    List<UsrBrowseTime> selectAllByBrowseTime(@Param("usrId") Long usrId);

    List<UsrLikeBrowse> selectAllByUsrIdBrowseList(@Param("usrId") Long usrId);

    Boolean deleteByUsrIdBoolean(@Param("goodsId") Long goodsId);

    Boolean deleteByGoodsIdBoolean(@Param("usrId") Long usrId,@Param("goodsId") Long goodsId);

    Integer selectAllByUsrIdAndGoodsId(@Param("usrId") Long usrId,@Param("goodsId") Long goodsId);

    User selectByUsrName(@Param("nikeName") String nikeName);

    Integer insertUserLikeGoods(@Param("usrId") Long usrId,@Param("goodsId") Long goodsId);

    Integer deleteAll(@Param("usrId") Long usrId);

    User selectUsrIdUser(@Param("usrId") Long usrId);

}
